<template>
  <el-container style="height: 785px; border: 1px solid #eee">
    <el-aside  :class="aside">
      <aside-index  :isCollapse="asideIsCollapse" ></aside-index>
    </el-aside>
    <el-container>
      <el-header style="text-align: right; font-size: 12px" id="first">
        <header-index @func3="getMessage3"></header-index>
        <br />
      </el-header>
      <el-main>
        <!-- <container-index></container-index> -->
        <router-view></router-view>
      </el-main>
    </el-container>
  </el-container>
</template>
<script>
import AsideIndex from "./index/AsideIndex.vue";
import HeaderIndex from "./index/HeaderIndex.vue";
/* import ContainerIndex from "./index/ContainerIndex.vue"; */
export default {
  name: "index",
   created() {
  },
  components: {
    "aside-index":AsideIndex,
    "header-index": HeaderIndex,
   /*  "container-index" : ContainerIndex, */
  },
  data(){
    return{
      aside:"small",
      asideIsCollapse:true
    }
  },
  methods:{
    getMessage3(val){
      this.aside=val;
      console.log(val)
      if(this.asideIsCollapse==true){
             this.asideIsCollapse=false
      }else{
        this.asideIsCollapse=true
      }
    }
  }
};
</script>

<style scopde>
#first {
  height: 100px !important;
}
* {
  overflow: hidden !important;
}
.small{
  width: 80px !important; 
}
.big{
 width: 220px !important; 
}
</style>